<%@ Page Title="Students" Language="C#" MasterPageFile="~/masterpage.master" AutoEventWireup="true" CodeFile="StudentsPublic.aspx.cs" Inherits="StudentsPublic" %>
<%@ Register src="ucLetters.ascx" tagname="ucLetters" tagprefix="uc2" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link rel="stylesheet" type="text/css" href="css/admin.css" />
    <script language="javascript" type="text/javascript">
	    var controldivname = 'ctl00_ContentPlaceHolder1_rgStudents';
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table width="95%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td colspan="2">
                <div class="wrap4">
                    <div class="abcd">
                        <table width= "100%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
	                            <td align="left" valign="middle" width="300">
                                    <asp:Label ID="Label1" runat="server" Text="Last Name:"></asp:Label>
			                        <asp:TextBox ID="tbName" runat="server"></asp:TextBox>
			                        <asp:ImageButton ID="bGo"  runat="server" ImageUrl="images/go_button2.png" 
			                            Text="Go" onclick="bGo_Click" style="height: 17px" />
                                </td>
	                            <td align="center" style="width:500px;">
	                                <uc2:ucLetters ID="ucLetters1" Format="StudentsPublic.aspx?letter={0}" runat="server" />
                                </td>
		                        <td align="right">
                                    <asp:ImageButton ImageUrl="Images/excel_icon2.png" ID="lbExport" runat="server" 
  		                                onclick="lbExport_Click" ToolTip="Export to Excel" >
                                    </asp:ImageButton>
                                </td>
	                        </tr>
	                    </table>
	                    <div class="clr">
                        </div>
                    </div>
                </div>
                <div class="clr"></div>
            </td>
        </tr>
    </table>
    <table style="width:900px;">
        <tr>
            <td align="left">
                <telerik:radscriptmanager ID="RadScriptManager1" Runat="server"></telerik:radscriptmanager>

                <telerik:radgrid ID="rgStudents" runat="server" AllowPaging="True" 
		                AllowSorting="True" Height="400px" Width="100%" 
	                  CssClass="stats"	onsortcommand="rgStudents_SortCommand" 
		                onpageindexchanged="rgStudents_PageIndexChanged"  GridLines="None" 
		                AllowAutomaticUpdates="True" AutoGenerateColumns="False">

                    <HeaderStyle  Font-Bold="True" Font-Underline="False" Font-Size="9" HorizontalAlign="Center"  />
                    <HeaderContextMenu>
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </HeaderContextMenu>

                    <FilterMenu>
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                    </FilterMenu>

                    <ItemStyle BackColor="Silver" />
	                <AlternatingItemStyle BackColor="LightGray" />

                    <MasterTableView>
		                <Columns>
			                <telerik:GridHyperLinkColumn DataNavigateUrlFields="STUDENT_ID" UniqueName="STUDENT_ID1"
			                        DataNavigateUrlFormatString="ReportCard.aspx?studentId={0}" DataTextField="FIRST_NAME" SortExpression="FIRST_NAME" HeaderText="First" HeaderStyle-Width="150" />
			                <telerik:GridHyperLinkColumn DataNavigateUrlFields="STUDENT_ID"  UniqueName="STUDENT_ID2"
			                    DataNavigateUrlFormatString="ReportCard.aspx?studentId={0}" DataTextField="LAST_NAME" SortExpression="LAST_NAME" HeaderText="Last" HeaderStyle-Width="150" />
			                <telerik:GridBoundColumn  DataField="GRADE_LEVEL" UniqueName="GRADE_LEVEL" SortExpression="GRADE_LEVEL" HeaderText="Grade" HeaderStyle-Width="70">
			                <ItemStyle  HorizontalAlign="Center"/>
			                </telerik:GridBoundColumn >
			                <telerik:GridBoundColumn DataField="EMAIL" SortExpression="EMAIL" HeaderText="Email" UniqueName="Email" HeaderStyle-Width="300" />
			                <telerik:GridBoundColumn DataField="PRIMARY_PHONE" SortExpression="PRIMARY_PHONE" HeaderText="Home Phone" UniqueName="HomePhone" HeaderStyle-Width="103" />
			                <telerik:GridBoundColumn DataField="SECONDARY_PHONE" SortExpression="SECONDARY_PHONE" HeaderText="Cell Phone" UniqueName="CellPhone" HeaderStyle-Width="120" />
		                </Columns>
	                </MasterTableView>

                    <ClientSettings>
                      <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True"></Scrolling>
                    </ClientSettings>
                </telerik:radgrid>
            </td>
        </tr>
    </table>
</asp:Content>

